home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 607 < prev    next >
Mailbox/MIME Entity  |  1996-08-06  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6d 69 | 6e 65 72 76 61 2e 69 62 |Path: mi|nerva.ib|
|00000010| 65 72 6e 65 74 2e 65 73 | 21 75 73 65 6e 65 74 0a |ernet.es|!usenet.|
|00000020| 46 72 6f 6d 3a 20 41 6e | 74 6f 6e 69 6f 20 4e 61 |From: An|tonio Na|
|00000030| 76 61 72 72 6f 20 4e 61 | 76 61 72 72 6f 20 3c 77 |varro Na|varro <w|
|00000040| 65 62 6d 61 73 74 65 72 | 40 62 65 6d 61 72 6e 65 |ebmaster|@bemarne|
|00000050| 74 2e 65 73 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |t.es>.Ne|wsgroups|
|00000060| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 2b 2b 0a |: comp.l|ang.c++.|
|00000070| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 46 61 73 |Subject:| Re: Fas|
|00000080| 74 65 72 20 46 49 4c 45 | 20 73 75 62 72 6f 75 74 |ter FILE| subrout|
|00000090| 69 6e 65 73 20 69 6e 20 | 73 74 61 6e 64 61 72 64 |ines in |standard|
|000000a0| 20 43 3f 0a 44 61 74 65 | 3a 20 46 72 69 2c 20 30 | C?.Date|: Fri, 0|
|000000b0| 35 20 4a 61 6e 20 31 39 | 39 36 20 31 31 3a 33 30 |5 Jan 19|96 11:30|
|000000c0| 3a 33 37 20 2b 30 31 30 | 30 0a 4f 72 67 61 6e 69 |:37 +010|0.Organi|
|000000d0| 7a 61 74 69 6f 6e 3a 20 | 42 65 6d 61 72 4e 65 74 |zation: |BemarNet|
|000000e0| 20 4d 61 6e 61 67 65 6d | 65 6e 74 0a 4d 65 73 73 | Managem|ent.Mess|
|000000f0| 61 67 65 2d 49 44 3a 20 | 3c 33 30 45 43 46 44 43 |age-ID: |<30ECFDC|
|00000100| 44 2e 36 46 46 46 40 62 | 65 6d 61 72 6e 65 74 2e |D.6FFF@b|emarnet.|
|00000110| 65 73 3e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |es>.Refe|rences: |
|00000120| 3c 50 69 6e 65 2e 41 33 | 32 2e 33 2e 39 31 2e 39 |<Pine.A3|2.3.91.9|
|00000130| 36 30 31 30 33 31 31 31 | 39 34 32 2e 35 32 32 34 |60103111|942.5224|
|00000140| 39 41 2d 31 30 30 30 30 | 30 2d 31 30 30 30 30 30 |9A-10000|0-100000|
|00000150| 2d 31 30 30 30 30 30 2d | 31 30 30 30 30 30 2d 31 |-100000-|100000-1|
|00000160| 30 30 30 30 30 40 61 66 | 65 70 2e 79 6f 72 6b 75 |00000@af|ep.yorku|
|00000170| 2e 63 61 3e 0a 4e 4e 54 | 50 2d 50 6f 73 74 69 6e |.ca>.NNT|P-Postin|
|00000180| 67 2d 48 6f 73 74 3a 20 | 61 72 69 61 64 6e 61 2e |g-Host: |ariadna.|
|00000190| 62 65 6d 61 72 6e 65 74 | 2e 65 73 0a 4d 69 6d 65 |bemarnet|.es.Mime|
|000001a0| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 43 6f |-Version|: 1.0.Co|
|000001b0| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 74 65 78 74 |ntent-Ty|pe: text|
|000001c0| 2f 70 6c 61 69 6e 3b 20 | 63 68 61 72 73 65 74 3d |/plain; |charset=|
|000001d0| 75 73 2d 61 73 63 69 69 | 0a 43 6f 6e 74 65 6e 74 |us-ascii|.Content|
|000001e0| 2d 54 72 61 6e 73 66 65 | 72 2d 45 6e 63 6f 64 69 |-Transfe|r-Encodi|
|000001f0| 6e 67 3a 20 37 62 69 74 | 0a 58 2d 4d 61 69 6c 65 |ng: 7bit|.X-Maile|
|00000200| 72 3a 20 4d 6f 7a 69 6c | 6c 61 20 32 2e 30 62 33 |r: Mozil|la 2.0b3|
|00000210| 20 28 57 69 6e 39 35 3b | 20 49 29 0a 54 6f 3a 20 | (Win95;| I).To: |
|00000220| 4b 65 6e 20 3c 6b 65 6e | 40 61 66 65 70 2e 79 6f |Ken <ken|@afep.yo|
|00000230| 72 6b 75 2e 63 61 3e 0a | 0a 4b 65 6e 20 77 72 6f |rku.ca>.|.Ken wro|
|00000240| 74 65 3a 0a 0a 3e 20 49 | 20 66 6f 75 6e 64 20 74 |te:..> I| found t|
|00000250| 68 61 74 20 49 20 77 61 | 73 20 61 62 6c 65 20 74 |hat I wa|s able t|
|00000260| 6f 20 67 65 74 20 33 2d | 34 20 74 69 6d 65 20 66 |o get 3-|4 time f|
|00000270| 61 73 74 65 72 20 70 65 | 72 66 6f 72 6d 61 6e 63 |aster pe|rformanc|
|00000280| 65 20 62 79 20 75 73 69 | 6e 67 20 67 6f 6f 64 0a |e by usi|ng good.|
|00000290| 3e 20 6f 6c 64 20 41 4e | 53 49 20 43 20 66 69 6c |> old AN|SI C fil|
|000002a0| 65 20 61 63 63 65 73 73 | 69 6e 67 20 72 6f 75 74 |e access|ing rout|
|000002b0| 69 6e 65 73 20 28 6c 69 | 6b 65 20 20 66 67 65 74 |ines (li|ke fget|
|000002c0| 73 2c 20 66 73 65 65 6b | 2c 20 66 74 65 6c 6c 2c |s, fseek|, ftell,|
|000002d0| 20 2e 2e 2e 65 74 63 2e | 29 0a 3e 20 69 6e 73 74 | ...etc.|).> inst|
|000002e0| 65 61 64 20 6f 66 20 43 | 2b 2b 20 73 74 72 65 61 |ead of C|++ strea|
|000002f0| 6d 73 20 28 6c 69 6b 65 | 20 69 66 73 74 72 65 61 |ms (like| ifstrea|
|00000300| 6d 3a 3a 67 65 74 6c 69 | 6e 65 2c 20 66 73 74 72 |m::getli|ne, fstr|
|00000310| 65 61 6d 3a 3a 73 65 65 | 6b 67 2c 20 2e 2e 2e 65 |eam::see|kg, ...e|
|00000320| 74 63 2e 29 0a 3e 20 49 | 20 77 72 6f 74 65 20 74 |tc.).> I| wrote t|
|00000330| 68 65 20 70 72 6f 67 72 | 61 6d 20 6f 72 69 67 69 |he progr|am origi|
|00000340| 6e 61 6c 6c 79 20 69 6e | 20 43 2b 2b 20 28 61 20 |nally in| C++ (a |
|00000350| 73 69 6d 70 6c 65 20 6c | 69 74 74 6c 65 20 70 68 |simple l|ittle ph|
|00000360| 6f 6e 65 62 6f 6f 6b 20 | 66 6f 72 20 6d 79 0a 3e |onebook |for my.>|
|00000370| 20 6f 77 6e 20 75 73 65 | 29 20 61 6e 64 20 69 74 | own use|) and it|
|00000380| 20 74 6f 6f 6b 20 61 62 | 6f 75 74 20 39 20 73 65 | took ab|out 9 se|
|00000390| 63 6f 6e 64 73 20 74 6f | 20 73 63 61 6e 20 61 20 |conds to| scan a |
|000003a0| 31 30 30 4b 62 20 66 69 | 6c 65 20 66 6f 72 20 61 |100Kb fi|le for a|
|000003b0| 20 33 20 62 79 74 65 0a | 3e 20 73 74 72 69 6e 67 | 3 byte.|> string|
|000003c0| 21 21 21 20 20 46 65 64 | 20 75 70 2c 20 49 20 72 |!!! Fed| up, I r|
|000003d0| 65 77 72 6f 74 65 20 69 | 74 20 69 6e 20 43 20 61 |ewrote i|t in C a|
|000003e0| 6e 64 20 76 6f 69 6c 61 | 21 20 4e 6f 77 20 69 74 |nd voila|! Now it|
|000003f0| 20 74 61 6b 65 73 20 32 | 20 73 65 63 73 21 0a 3e | takes 2| secs!.>|
|00000400| 20 49 27 6d 20 75 73 69 | 6e 67 20 42 6f 72 6c 61 | I'm usi|ng Borla|
|00000410| 6e 64 20 43 2b 2b 20 76 | 32 2e 30 2e 0a 0a 48 65 |nd C++ v|2.0...He|
|00000420| 6c 6c 6f 20 4b 65 6e 20 | 21 0a 0a 49 20 61 6d 20 |llo Ken |!..I am |
|00000430| 74 72 79 69 6e 67 20 74 | 6f 20 62 75 69 6c 64 20 |trying t|o build |
|00000440| 61 20 73 69 6d 70 6c 65 | 20 64 61 74 61 62 61 73 |a simple| databas|
|00000450| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 6e |e applic|ation in|
|00000460| 20 41 4e 53 49 20 43 20 | 75 6e 64 65 72 20 55 4e | ANSI C |under UN|
|00000470| 49 58 2c 20 62 75 74 20 | 49 20 61 6d 20 61 20 72 |IX, but |I am a r|
|00000480| 65 63 65 6e 74 20 75 73 | 65 72 20 0a 6f 66 20 43 |ecent us|er .of C|
|00000490| 2c 20 61 6e 64 20 49 20 | 68 61 76 65 20 61 20 6c |, and I |have a l|
|000004a0| 6f 74 20 6f 66 20 74 72 | 6f 75 62 6c 65 73 20 69 |ot of tr|oubles i|
|000004b0| 6e 20 77 72 69 74 69 6e | 67 20 74 68 65 20 63 6f |n writin|g the co|
|000004c0| 64 65 20 72 65 6c 61 74 | 65 64 20 74 6f 20 74 68 |de relat|ed to th|
|000004d0| 65 20 66 69 6c 65 20 6d | 61 6e 61 67 65 6d 65 6e |e file m|anagemen|
|000004e0| 74 2e 20 49 20 6e 65 65 | 64 20 61 20 0a 6c 69 74 |t. I nee|d a .lit|
|000004f0| 74 6c 65 20 70 72 6f 67 | 72 61 6d 20 74 6f 20 61 |tle prog|ram to a|
|00000500| 63 63 65 73 73 20 61 20 | 73 69 6d 70 6c 65 20 64 |ccess a |simple d|
|00000510| 61 74 61 62 61 73 65 20 | 63 6f 6e 74 61 69 6e 69 |atabase |containi|
|00000520| 6e 67 20 75 73 65 72 20 | 6e 61 6d 65 73 20 61 6e |ng user |names an|
|00000530| 64 20 70 61 73 73 77 6f | 72 64 73 2e 20 50 6c 65 |d passwo|rds. Ple|
|00000540| 61 73 65 2c 20 63 6f 75 | 6c 64 20 79 6f 75 20 0a |ase, cou|ld you .|
|00000550| 68 65 6c 70 20 6d 65 20 | 73 65 6e 64 69 6e 67 20 |help me |sending |
|00000560| 61 20 6c 69 74 74 6c 65 | 20 70 72 6f 67 72 61 6d |a little| program|
|00000570| 20 69 6e 20 43 20 3f 0a | 0a 54 68 61 6e 6b 73 20 | in C ?.|.Thanks |
|00000580| 69 6e 20 61 64 76 61 6e | 63 65 2e 0a 0a 41 6e 74 |in advan|ce...Ant|
|00000590| 6f 6e 69 6f 20 4e 61 76 | 61 72 72 6f 0a 61 6e 74 |onio Nav|arro.ant|
|000005a0| 6f 6e 69 6f 40 62 65 6d | 61 72 6e 65 74 2e 65 73 |onio@bem|arnet.es|
|000005b0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+